package com.dykj.dati.service.user.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dykj.dati.model.user.HUser;
import com.dykj.dati.mapper.user.HUserMapper;
import com.dykj.dati.service.user.IHUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * h5用户表 服务实现类
 * </p>
 *
 * @author YangChao
 * @since 2022-08-24
 */
@Service
public class HUserServiceImpl extends ServiceImpl<HUserMapper, HUser> implements IHUserService {

    @Override
    public HUser getUserByPhone(String phone) {
        QueryWrapper<HUser> queryWrapper =new QueryWrapper<>();
        queryWrapper.eq("phone",phone);
        HUser user = this.baseMapper.selectOne(queryWrapper);
        return user;
    }
}
